package com.ee.chat.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ee.chat.common.entity.SysVersion;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author Shane
 * @since 2019-11-26
 */
public interface SysVersionMapper extends BaseMapper<SysVersion> {
    /**
     * 获取app的最新版本
     * @Author Shane
     * @Date 2019/11/26 16:50
     * @param type  类型，0-android  1-ios
     * @return
     **/
    SysVersion selectNewestVersionByType(@Param("type") Integer type);

    IPage<SysVersion> list(Page page, @Param("type") Integer type, @Param("beginTime") Date beginTime, @Param("endTime") Date endTime);
}